package cn.dnui_xqh414.dnuifood_16110100414.service;

import java.util.List;

import cn.dnui_xqh414.dnuifood_16110100414.bean.AllshopBean;
import cn.dnui_xqh414.dnuifood_16110100414.bean.CollectBean;
import cn.dnui_xqh414.dnuifood_16110100414.bean.Collectstate;
import cn.dnui_xqh414.dnuifood_16110100414.bean.GetAllCollectBean;
import cn.dnui_xqh414.dnuifood_16110100414.bean.ShopdetailBean;
import cn.dnui_xqh414.dnuifood_16110100414.bean.getAllCommentsBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ShopService {
    @GET("getAllShops.do")
    Call<List<AllshopBean>> getAllShop();

    @GET("getFoodByShop.do")
    Call<List<ShopdetailBean>> getFoodlist(
            @Query("shop_id") String shop_id);

    @GET("getShopById.do")
    Call<AllshopBean> getShopById(
            @Query("shop_id") int shopId
    );

    @GET("isCollected.do")
    Call<Collectstate> getCollect(
            @Query("user_id") int userID,
            @Query("shop_food_id") int shop_food_ID,
            @Query("flag") int flag);

    @GET("userCollectShop.do")
    Call<CollectBean> doCollect(
            @Query("user_id") int userID,
            @Query("shop_id") int shopID
    );

    @GET("userCollectFood.do")
    Call<CollectBean> doFoodCollect(
            @Query("user_id") int userID,
            @Query("food_id") int foodID
    );

    @GET("getAllUserCollection.do")
    Call<List<GetAllCollectBean>> getAllcollect(
            @Query("user_id") int userID,
            @Query("flag") int flag
    );

    @GET("getAllCommentsByFood.do")
    Call<List<getAllCommentsBean>> getComments(
            @Query("food_id") int foodId
    );

    @GET("getFoodById.do")
    Call<ShopdetailBean> getFoodById(
            @Query("food_id") int foodId
    );
}
